package com.farm.factory;

import com.farm.AgriculturalMachine;


//收割机
class HarvestingMachine extends AgriculturalMachine {
    @Override
    public void operate(String machineName) {
        System.out.println(machineName + "收割机正在收割...");
    }

    @Override
    public void displayStatus(String machineName) {
        System.out.println(machineName + "收割机状态: 工作中, 粮仓容量: " + (int)(Math.random() * 100) + "%");
    }

    @Override
    public String getDescription() {
        return null;
    }
}